package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;

import java.util.List;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by zhuyakun on 2017/11/14.
 */

public class GetTagRequest {
    List<Integer> groupIds;

    private GetTagRequest(Builder builder) {
        setGroupIds(builder.groupIds);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public List<Integer> getGroupIds() {
        return groupIds;
    }

    public void setGroupIds(List<Integer> groupIds) {
        this.groupIds = groupIds;
    }


    public static final class Builder {
        private List<Integer> groupIds;

        private Builder() {
        }

        public Builder groupIds(List<Integer> groupIds) {
            this.groupIds = groupIds;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().getTags(new GetTagRequest(this));
        }
    }
}
